package com.maila.xiaoaobusiness.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


import com.maila.xiaoaobusiness.R;
import com.maila.xiaoaobusiness.utils.StartActivityUtils;
import com.zhy.autolayout.AutoLinearLayout;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 我的钱包
 * Created by mark on 2017/10/18.
 */

public class MyWalletActivity extends AppCompatActivity {
    @BindView(R.id.white_return_iv)
    AutoRelativeLayout whiteReturnIv;
    @BindView(R.id.tv_totelmoney)
    TextView tvTotelmoney;
    @BindView(R.id.bt_withdrawcash)
    Button btWithdrawcash;
    @BindView(R.id.ll_more_details)
    AutoLinearLayout llMoreDetails;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_wallet);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.white_return_iv, R.id.bt_withdrawcash, R.id.ll_more_details})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.white_return_iv:
                finish();
                break;
            case R.id.bt_withdrawcash:
                StartActivityUtils.start(this,WithdrawActivity.class);
                break;
            case R.id.ll_more_details:
                StartActivityUtils.start(this, TradeRecodeActivity.class);
                break;
        }
    }
}
